import axios from 'axios'

export default function http(service, method = "get", options = {}, loading = true) {
    return axios({
        method,
        url: service,
        data: options
    })
}
